<?xml version="1.0" encoding="utf-8"?>
<!--
// <copyright file="MSBuild.ExtensionPack.Sync.xsd">(c) http://www.codeplex.com/MSBuildExtensionPack. This source is subject to the Microsoft Permissive License. See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. All other rights reserved.</copyright>
-->
<xs:schema xmlns:msb="http://schemas.microsoft.com/developer/msbuild/2003" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/developer/msbuild/2003" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:include schemaLocation="Microsoft.Build.Core.xsd" />
    <xs:element name="MSBuild.ExtensionPack.Sql2008.Server" substitutionGroup="msb:Task">
        <xs:complexType>
            <xs:complexContent mixed="false">
                <xs:extension base="msb:TaskType">
                    <xs:attribute name="TaskAction" use="required">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="GetConnectionCount"/>
                                <xs:enumeration value="GetInfo"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="NoPooling" />
                    <xs:attribute name="ConnectionCount" />
                    <xs:attribute name="Information" />
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="MSBuild.ExtensionPack.Sql2008.Database" substitutionGroup="msb:Task">
        <xs:complexType>
            <xs:complexContent mixed="false">
                <xs:extension base="msb:TaskType">
                    <xs:attribute name="TaskAction" use="required">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="Backup"/>
                                <xs:enumeration value="CheckExists"/>
                                <xs:enumeration value="Create"/>
                                <xs:enumeration value="Delete"/>
                                <xs:enumeration value="DeleteBackupHistory"/>
                                <xs:enumeration value="GetConnectionCount"/>
                                <xs:enumeration value="GetInfo"/>
                                <xs:enumeration value="Rename"/>
                                <xs:enumeration value="Restore"/>
                                <xs:enumeration value="Script"/>
                                <xs:enumeration value="SetOffline"/>
                                <xs:enumeration value="SetOnline"/>
                                <xs:enumeration value="VerifyBackup"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="BackupAction"/>
                    <xs:attribute name="Collation" />
                    <xs:attribute name="ConnectionCount" />
                    <xs:attribute name="DatabaseItem" />
                    <xs:attribute name="DataFilePath" />
                    <xs:attribute name="Exists" />
                    <xs:attribute name="FileGroupName"/>
                    <xs:attribute name="Force" />
                    <xs:attribute name="Incremental" />
                    <xs:attribute name="Information" />
                    <xs:attribute name="LogFilePath" />
                    <xs:attribute name="LogName"/>
                    <xs:attribute name="NewDataFilePath"/>
                    <xs:attribute name="NoPooling" />
                    <xs:attribute name="NotificationInterval" />
                    <xs:attribute name="OutputFilePath" />
                    <xs:attribute name="PrimaryDataFileName" />
                    <xs:attribute name="ReplaceDatabase" />
                    <xs:attribute name="RestoreAction"/>
                    <xs:attribute name="SecondaryDataFilePath"/>
                    <xs:attribute name="SecondaryDataFileName"/>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
</xs:schema>